﻿using System;
using System.Web;

namespace Facebook.Web
{
    public class FacebookApplication : HttpApplication
    {
        public override void Init()
        {
            base.Init();

            this.BeginRequest += new EventHandler(FacebookApplication_BeginRequest);

            this.InitTemplates();
        }

        void InitTemplates()
        {
            var templates = Configuration.FeedTemplates.Get();;
            if (templates.Count > 0)
            {

            }
        }

        void FacebookApplication_BeginRequest(Object sender, EventArgs e)
        {
            FacebookWebContext.Init(this.Context);
        }
    }
}